package interpreter.debugger.ui;

/**
 *
 * @author Kris Selbekk
 */
public class ListBrkPtCommand extends Command {

    public void exec( String[] args ) {
        args = null; // Resets args
    }
    // If breakpoint are found, list them
    public void print() {
        StringBuilder out = new StringBuilder();

        if( dvm.listBreakpoints().length() == 0 )
            out.append("No breakpoints have been set.");
        else {
            out.append("Active breakpoints:\n  ");
            out.append(dvm.listBreakpoints());
        }

        System.out.println(out);
    }
}
